EventTarget

public interface EventTarget

Represents an event target that is able to process events, for example, a DOM node.

Provides methods to manage event listeners and dispatch events.

Inheritors

Functions

Link copied to clipboard
public abstract void addEventListener(EventType eventType, Observer<Event> listener, boolean useCapture)
Adds the given listener to the event target.
Link copied to clipboard
public abstract boolean dispatch(Event event)
Dispatches the given event at the current event target.
Link copied to clipboard
public abstract List<Observer<Event>> eventListeners(EventType eventType, boolean useCapture)
Returns the immutable list of event listeners that listen events of the given eventType in a phase that corresponds the given useCapture.
Link copied to clipboard
public abstract void removeEventListener(EventType eventType, Observer<Event> listener, boolean useCapture)
Removes the given listener from the event target.